@echo off
echo === 代码转Word文档工具 ===
echo.

REM 检查是否已编译
if not exist "target\classes" (
    echo 正在编译项目...
    mvn clean compile
)

REM 检查依赖库是否存在
if not exist "target\lib" (
    echo 正在下载依赖库...
    mvn dependency:copy-dependencies -DoutputDirectory=target/lib
)

REM 运行程序
echo 启动程序...
java -cp "target/classes;target/lib/*" com.airlenet.codetoword.Main

echo.
echo 程序执行完成！
pause